package org.hpm.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description: 订单商品关联表
 * @author: jacklin
 * @date: 2021-12-02
 * @version: V1.0
 */
@Data
@TableName("hpm_order_items")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "hpm_order_items对象", description = "订单商品关联表")
public class HpmOrderItems implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 归属订单id
     */
    @Excel(name = "归属订单id", width = 15)
    @ApiModelProperty(value = "归属订单id")
    private String orderId;
    /**
     * 商品id
     */
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private String itemId;
    /**
     * 商品图片
     */
    @Excel(name = "商品图片", width = 15)
    @ApiModelProperty(value = "商品图片")
    private String itemImg;
    /**
     * 商品名称
     */
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String itemName;
    /**
     * 规格id
     */
    @Excel(name = "规格id", width = 15)
    @ApiModelProperty(value = "规格id")
    private String itemSpecificationsId;
    /**
     * 规格名称
     */
    @Excel(name = "规格名称", width = 15)
    @ApiModelProperty(value = "规格名称")
    private String itemSpecificationsName;
    /**
     * 成交价格
     */
    @Excel(name = "成交价格", width = 15)
    @ApiModelProperty(value = "成交价格")
    private Integer price;
    /**
     * 购买数量
     */
    @Excel(name = "购买数量", width = 15)
    @ApiModelProperty(value = "购买数量")
    private Integer buyCounts;
    /**
     * 逻辑删除状态;1: 删除 0:未删除
     */
    @Excel(name = "逻辑删除状态;1: 删除 0:未删除", width = 15)
    @ApiModelProperty(value = "逻辑删除状态;1: 删除 0:未删除")
    private Integer deleted;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
